package com.zxw.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zxw.user.domain.dto.RoleDTO;
import com.zxw.user.domain.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zxw.user.domain.vo.RolePageVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-01-21
 */
public interface RoleService extends IService<Role> {

    Role findRoleById(Long id);

    List<RoleDTO> roleList(RolePageVO rolePageVO);

    IPage<RoleDTO> roleListPage(RolePageVO rolePageVO);

    Role addRole(Role role);

    Role update(Role role);

    void delete(String ids);
}
